#include <stdio.h>

#include "check_interface.h"
#include "link_list.h"
#include "alg_errno.h"

START_TEST(test_init)
{
    link_list *ctx = NULL;
    ck_assert_int_eq(link_list_init(&ctx), ALG_OK);
}
END_TEST

START_TEST(test_input)
{
    link_list *ctx = NULL;
    ck_assert_int_eq(link_list_init(NULL), ALG_BAD_INPUT);
}
END_TEST

Suite *check_init(void)
{
    Suite *s;
    TCase *tc_core;

    s = suite_create("link_list_init test");

    tc_core = tcase_create("core");
    tcase_add_test(tc_core, test_init);
    tcase_add_test(tc_core, test_input);

    suite_add_tcase(s, tc_core);

    return s;
}